package com.smfx.yxt.view;

import java.io.Serializable;
import java.util.Date;

import com.smfx.yxt.common.Const;
import com.smfx.yxt.wechat.utils.WechatGlobalMap;

public class ClassChatReadView implements Serializable{
	
	private static final long serialVersionUID = 7270171875192442399L;
	
	private Integer schoolId;
	
	private Integer grade;
	
	private Integer clazz;
	
	private String chatType;
	
	private Integer studentId;
	
	private String studentName;
	
	private String message;
	
	private String messageType;
	
	private Date createTime;
	
	private String startDate;
	
	private String messageDate;
	
	private int count;

	
	public Integer getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Integer schoolId) {
		this.schoolId = schoolId;
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getClazz() {
		return clazz;
	}

	public void setClazz(Integer clazz) {
		this.clazz = clazz;
	}

	public String getChatType() {
		return chatType;
	}

	public void setChatType(String chatType) {
		this.chatType = chatType;
	}

	public Integer getStudentId() {
		return studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getMessageType() {
		return messageType;
	}

	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getGradeName(){
		TermView view = (TermView) WechatGlobalMap.get(Const.CACHE_TERM).getValue();
		return view.getGradeName(getGrade());
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getMessageDate() {
		return messageDate;
	}

	public void setMessageDate(String messageDate) {
		this.messageDate = messageDate;
	}
	
}
